package router

import (
	"github.com/gin-gonic/gin"
	"xiao-hong-book/handler"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/login", handler.Login)
	r.POST("/bookAdd", handler.BookAdd)
	r.GET("/BookDetail", handler.BookDetail)
	r.GET("/BookDel", handler.BookDel)
	r.GET("/BookList", handler.BookList)
	return r
}
